package com.resou.reader.mine.coupon.fragment;

import com.resou.reader.api.entry.CouponBean;
import com.resou.reader.base.BasePresenter;
import com.resou.reader.base.BaseView;
import com.resou.reader.base.p.IPresenter;
import com.resou.reader.base.v.IView;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;

import java.util.List;

/**
 * Author: 萤火虫
 * E-mail:  Allensuns@163.com
 * Description:
 * CreateTime: 2019-03 -18
 **/
public interface FragmentCouponContract {
    interface ICouponView extends BaseView {
        /**
         * 显示数据视图
         *
         * @param dataList
         */
        void showCouponData(List<CouponBean> dataList);

        /**
         * 错误显示
         *
         * @param throwable
         */
        void showError(Throwable throwable);

        /**
         * 数据刷新的控件
         */
        SmartRefreshLayout getmSmartRefreshLayout();
    }

    interface ICouponPresenter extends BasePresenter {
        /**
         * 获取优惠券数据接口
         *
         * @param page
         */
        void quearCouponData(int page, int type);

    }
}
